<?php
	session_start();
	if ($_SESSION['days-active'] == 0) {
		$_SESSION['days-active'] = 30;
		$_SESSION['current-smoke-per-day'] = $_SESSION['initial-smoke-per-day'] - 3;
	}
	else {
		$_SESSION['days-active'] = 0;
		$_SESSION['current-smoke-per-day'] = $_SESSION['initial-smoke-per-day'];
	}
	header("location: index.php");
?>